3.10.39 \(\int \frac {(2+3 x)^2 (1+4 x)^m}{(1-5 x+3 x^2)^2} \, dx\) [939]

Optimal. Leaf size=179 \[ \frac {(61-87 x) (1+4 x)^{1+m}}{39 \left (1-5 x+3 x^2\right )}-\frac {2 \left (153-\left (23-29 \sqrt {13}\right ) m\right ) (1+4 x)^{1+m} \, _2F_1\left (1,1+m;2+m;\frac {3 (1+4 x)}{13-2 \sqrt {13}}\right )}{13 \sqrt {13} \left (13-2 \sqrt {13}\right ) (1+m)}+\frac {2 \left (153-\left (23+29 \sqrt {13}\right ) m\right ) (1+4 x)^{1+m} \, _2F_1\left (1,1+m;2+m;\frac {3 (1+4 x)}{13+2 \sqrt {13}}\right )}{13 \sqrt {13} \left (13+2 \sqrt {13}\right ) (1+m)} \]

[Out]

1/39*(61-87*x)*(1+4*x)^(1+m)/(3*x^2-5*x+1)-2/169*(1+4*x)^(1+m)*hypergeom([1, 1+m],[2+m],3*(1+4*x)/(13-2*13^(1/
2)))*(153-m*(23-29*13^(1/2)))/(1+m)/(13-2*13^(1/2))*13^(1/2)+2/169*(1+4*x)^(1+m)*hypergeom([1, 1+m],[2+m],3*(1
+4*x)/(13+2*13^(1/2)))*(153-m*(23+29*13^(1/2)))/(1+m)*13^(1/2)/(13+2*13^(1/2))

________________________________________________________________________________________

Rubi [A]
time = 0.16, antiderivative size = 179, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {1662, 844, 70} \begin {gather*} -\frac {2 \left (153-\left (23-29 \sqrt {13}\right ) m\right ) (4 x+1)^{m+1} \, _2F_1\left (1,m+1;m+2;\frac {3 (4 x+1)}{13-2 \sqrt {13}}\right )}{13 \sqrt {13} \left (13-2 \sqrt {13}\right ) (m+1)}+\frac {2 \left (153-\left (23+29 \sqrt {13}\right ) m\right ) (4 x+1)^{m+1} \, _2F_1\left (1,m+1;m+2;\frac {3 (4 x+1)}{13+2 \sqrt {13}}\right )}{13 \sqrt {13} \left (13+2 \sqrt {13}\right ) (m+1)}+\frac {(61-87 x) (4 x+1)^{m+1}}{39 \left (3 x^2-5 x+1\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((2 + 3*x)^2*(1 + 4*x)^m)/(1 - 5*x + 3*x^2)^2,x]

[Out]

((61 - 87*x)*(1 + 4*x)^(1 + m))/(39*(1 - 5*x + 3*x^2)) - (2*(153 - (23 - 29*Sqrt[13])*m)*(1 + 4*x)^(1 + m)*Hyp
ergeometric2F1[1, 1 + m, 2 + m, (3*(1 + 4*x))/(13 - 2*Sqrt[13])])/(13*Sqrt[13]*(13 - 2*Sqrt[13])*(1 + m)) + (2
*(153 - (23 + 29*Sqrt[13])*m)*(1 + 4*x)^(1 + m)*Hypergeometric2F1[1, 1 + m, 2 + m, (3*(1 + 4*x))/(13 + 2*Sqrt[
13])])/(13*Sqrt[13]*(13 + 2*Sqrt[13])*(1 + m))

Rule 70

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b*c - a*d)^n*((a + b*x)^(m + 1)/(b^(
n + 1)*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m
}, x] && NeQ[b*c - a*d, 0] &&  !IntegerQ[m] && IntegerQ[n]

Rule 844

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Int[Exp
andIntegrand[(d + e*x)^m, (f + g*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b^2 -
4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] &&  !RationalQ[m]

Rule 1662

Int[(Pq_)*((d_.) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> With[{Q = Polynomi
alQuotient[Pq, a + b*x + c*x^2, x], f = Coeff[PolynomialRemainder[Pq, a + b*x + c*x^2, x], x, 0], g = Coeff[Po
lynomialRemainder[Pq, a + b*x + c*x^2, x], x, 1]}, Simp[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^(p + 1)*((f*(b*c*d
 - b^2*e + 2*a*c*e) - a*g*(2*c*d - b*e) + c*(f*(2*c*d - b*e) - g*(b*d - 2*a*e))*x)/((p + 1)*(b^2 - 4*a*c)*(c*d
^2 - b*d*e + a*e^2))), x] + Dist[1/((p + 1)*(b^2 - 4*a*c)*(c*d^2 - b*d*e + a*e^2)), Int[(d + e*x)^m*(a + b*x +
 c*x^2)^(p + 1)*ExpandToSum[(p + 1)*(b^2 - 4*a*c)*(c*d^2 - b*d*e + a*e^2)*Q + f*(b*c*d*e*(2*p - m + 2) + b^2*e
^2*(p + m + 2) - 2*c^2*d^2*(2*p + 3) - 2*a*c*e^2*(m + 2*p + 3)) - g*(a*e*(b*e - 2*c*d*m + b*e*m) - b*d*(3*c*d
- b*e + 2*c*d*p - b*e*p)) + c*e*(g*(b*d - 2*a*e) - f*(2*c*d - b*e))*(m + 2*p + 4)*x, x], x], x]] /; FreeQ[{a,
b, c, d, e, m}, x] && PolyQ[Pq, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && LtQ[p, -1] &&  !
(IGtQ[m, 0] && RationalQ[a, b, c, d, e] && (IntegerQ[p] || ILtQ[p + 1/2, 0]))

Rubi steps

\begin {align*} \int \frac {(2+3 x)^2 (1+4 x)^m}{\left (1-5 x+3 x^2\right )^2} \, dx &=\frac {(61-87 x) (1+4 x)^{1+m}}{39 \left (1-5 x+3 x^2\right )}-\frac {1}{507} \int \frac {(1+4 x)^m (26 (153+122 m)-4524 m x)}{1-5 x+3 x^2} \, dx\\ &=\frac {(61-87 x) (1+4 x)^{1+m}}{39 \left (1-5 x+3 x^2\right )}-\frac {1}{507} \int \left (\frac {\left (-4524 m-12 \sqrt {13} (-153+23 m)\right ) (1+4 x)^m}{-5-\sqrt {13}+6 x}+\frac {\left (-4524 m+12 \sqrt {13} (-153+23 m)\right ) (1+4 x)^m}{-5+\sqrt {13}+6 x}\right ) \, dx\\ &=\frac {(61-87 x) (1+4 x)^{1+m}}{39 \left (1-5 x+3 x^2\right )}+\frac {\left (4 \left (153-\left (23-29 \sqrt {13}\right ) m\right )\right ) \int \frac {(1+4 x)^m}{-5+\sqrt {13}+6 x} \, dx}{13 \sqrt {13}}-\frac {\left (4 \left (153-\left (23+29 \sqrt {13}\right ) m\right )\right ) \int \frac {(1+4 x)^m}{-5-\sqrt {13}+6 x} \, dx}{13 \sqrt {13}}\\ &=\frac {(61-87 x) (1+4 x)^{1+m}}{39 \left (1-5 x+3 x^2\right )}-\frac {2 \left (153-\left (23-29 \sqrt {13}\right ) m\right ) (1+4 x)^{1+m} \, _2F_1\left (1,1+m;2+m;\frac {3 (1+4 x)}{13-2 \sqrt {13}}\right )}{13 \sqrt {13} \left (13-2 \sqrt {13}\right ) (1+m)}+\frac {2 \left (153-\left (23+29 \sqrt {13}\right ) m\right ) (1+4 x)^{1+m} \, _2F_1\left (1,1+m;2+m;\frac {3 (1+4 x)}{13+2 \sqrt {13}}\right )}{13 \sqrt {13} \left (13+2 \sqrt {13}\right ) (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.33, size = 156, normalized size = 0.87 \begin {gather*} \frac {1}{507} (1+4 x)^{1+m} \left (\frac {793-1131 x}{1-5 x+3 x^2}-\frac {6 \left (-153 \sqrt {13}+\left (-377+23 \sqrt {13}\right ) m\right ) \, _2F_1\left (1,1+m;2+m;\frac {3+12 x}{13-2 \sqrt {13}}\right )}{\left (-13+2 \sqrt {13}\right ) (1+m)}-\frac {6 \left (-153 \sqrt {13}+\left (377+23 \sqrt {13}\right ) m\right ) \, _2F_1\left (1,1+m;2+m;\frac {3+12 x}{13+2 \sqrt {13}}\right )}{\left (13+2 \sqrt {13}\right ) (1+m)}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((2 + 3*x)^2*(1 + 4*x)^m)/(1 - 5*x + 3*x^2)^2,x]

[Out]

((1 + 4*x)^(1 + m)*((793 - 1131*x)/(1 - 5*x + 3*x^2) - (6*(-153*Sqrt[13] + (-377 + 23*Sqrt[13])*m)*Hypergeomet
ric2F1[1, 1 + m, 2 + m, (3 + 12*x)/(13 - 2*Sqrt[13])])/((-13 + 2*Sqrt[13])*(1 + m)) - (6*(-153*Sqrt[13] + (377
 + 23*Sqrt[13])*m)*Hypergeometric2F1[1, 1 + m, 2 + m, (3 + 12*x)/(13 + 2*Sqrt[13])])/((13 + 2*Sqrt[13])*(1 + m
))))/507

________________________________________________________________________________________

Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \frac {\left (2+3 x \right )^{2} \left (1+4 x \right )^{m}}{\left (3 x^{2}-5 x +1\right )^{2}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2+3*x)^2*(1+4*x)^m/(3*x^2-5*x+1)^2,x)

[Out]

int((2+3*x)^2*(1+4*x)^m/(3*x^2-5*x+1)^2,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2+3*x)^2*(1+4*x)^m/(3*x^2-5*x+1)^2,x, algorithm="maxima")

[Out]

integrate((4*x + 1)^m*(3*x + 2)^2/(3*x^2 - 5*x + 1)^2, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2+3*x)^2*(1+4*x)^m/(3*x^2-5*x+1)^2,x, algorithm="fricas")

[Out]

integral((9*x^2 + 12*x + 4)*(4*x + 1)^m/(9*x^4 - 30*x^3 + 31*x^2 - 10*x + 1), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (3 x + 2\right )^{2} \left (4 x + 1\right )^{m}}{\left (3 x^{2} - 5 x + 1\right )^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2+3*x)**2*(1+4*x)**m/(3*x**2-5*x+1)**2,x)

[Out]

Integral((3*x + 2)**2*(4*x + 1)**m/(3*x**2 - 5*x + 1)**2, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2+3*x)^2*(1+4*x)^m/(3*x^2-5*x+1)^2,x, algorithm="giac")

[Out]

integrate((4*x + 1)^m*(3*x + 2)^2/(3*x^2 - 5*x + 1)^2, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (3\,x+2\right )}^2\,{\left (4\,x+1\right )}^m}{{\left (3\,x^2-5\,x+1\right )}^2} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((3*x + 2)^2*(4*x + 1)^m)/(3*x^2 - 5*x + 1)^2,x)

[Out]

int(((3*x + 2)^2*(4*x + 1)^m)/(3*x^2 - 5*x + 1)^2, x)

________________________________________________________________________________________